package com.ruoyi.common.enums;

/**
 * 返回值枚举类，message字段请根据实际情况复写
 * @author wuwenchao
 *
 */
public enum ReturnValueEnum {

	ERROR(-1, "系统异常"),
	FAILED(0, "操作失败"),
	SUCCESS(1, "操作成功"),
	INVEST_TO_NEXT(2, "需要投资后进行下一步操作"),
	FAILED_NOT_LOGIN(3, "请先登录"),
	FAILED_VCODE_TIMEOUT(4, "图形验证码已超时"),
	FAILED_BALANCE_RECHARGE(5, "可投余额不足"),
	LOCK_MOBILE(6, "48小时内无法获取手机验证码"),
	OFFEN_REQUEST(7, "该手机目前无法发送验证码,短信验证码发送过于频繁"),
	BUSINESS_STOP(8, "业务因某原因被暂停"),
	EVENT_NOT_START(9, "活动未开始"),
	EVENT_ALREADY_CLOSED(10, "活动已结束"),
	;

	/**
	 * 状态码
	 */
	private int code;

	/**
	 * 消息
	 */
	private String message;
	
	ReturnValueEnum(int code, String message) {
		this.setCode(code);
		this.setMessage(message);
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
}
